<%@	page contentType="text/html; charset=utf-8"%>
<%@page import="com.appspot.yeswether.KoreanDateUtil"%>
<%@page import="com.appspot.yeswether.Weather"%>
<%@page import="com.appspot.yeswether.jdo.WeatherManager"%>
<%@page import="java.util.*" %>
<%	
	String code="CT001013";
	String date="0";
	
	if(request.getParameter("code") !=null){
		code=request.getParameter("code");
	}	
	if(request.getParameter("date") !=null){
		date=request.getParameter("date");
	}

	date=KoreanDateUtil.getDateString(Integer.parseInt(date));
	
	WeatherManager manager = new WeatherManager();
	
	Weather weather=manager.getWeather(code, date);

%>
<!DOCTYPE html> 
<%=code %>, <%=date %> <br>
<%= weather %>
</html>
